package ren.kane.phoenix.design.decorator;

/**
 * @author renrk(1275) on 2018-10-29 10:12 AM
 **/
public class DecoratorPatternDemo {

    public static void main(String[] args) {
        Shape circle = new Circle();

        System.out.println("Circle with normal border");
        circle.draw();

        Shape redCircle = new RedShapeDecorator(new Circle());

        System.out.println("\nCircle of red border");
        redCircle.draw();

        Shape redRectangle = new RedShapeDecorator(new Rectangle());

        System.out.println("\nRectangle of red border");
        redRectangle.draw();
    }
}
